package com.bear.cli.command;

import cn.hutool.core.util.ReflectUtil;
import com.bear.model.MainTemplateConfig;
import picocli.CommandLine.*;

import java.lang.reflect.Field;

/**
 * @Author : bear
 * Description :
 * @Create : 2024/11/12 - 19:33
 */
@Command(name = "config",description = "查看参数信息",mixinStandardHelpOptions = true)
public class ConfigCommand implements Runnable{
    @Override
    public void run() {
        //实现config命令的逻辑
        System.out.println("查看参数信息");
        Field[] fields = ReflectUtil.getFields(MainTemplateConfig.class);
        for (Field field : fields) {
            System.out.println("字段名称："+field.getName());
            System.out.println("字段类型："+field.getType());
            System.out.println("---");
        }
    }
}
